package com.cqvip.innocence.common.constant;


/**
 * @ClassName JwtConstant
 * @Description jwt使用到的一些常量键,当前类作为jwt常量类，后续前后台用户的token claims键值都使用相同key
 * @Author Innocence
 * @Date 2022/5/7 16:34
 * @Version 1.0
 */
public final class JwtConstant {

    /**
     * 用户标识
     */
    public static final String USER_KEY = "userKey";

    /**
     * 用户id
     */
    public static final String USER_ID = "userId";

    /**
     * 用户名
     */
    public static final String USER_NAME = "userName";

    /**
     * 管理端令牌标识
     */
    public static final String AUTHENTICATION = "Authentication";

    /**
     * 前端令牌标识
     */
    public static final String AUTHENTICATION_VIEW = "Authentication-view";

    /**
     * 令牌前缀
     */
    public static final String PREFIX = "Bearer ";

    /**
     * jwt密钥
     */
    public static final String SECRET = "abcdefghijklmnopqrstuvwxyz";

    /**
     * 过期时间30分钟
     */
    public static final Long EXPIRE_TIME = 30L;
}
